﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="MonthlyEvenList.aspx.cs" Inherits="SBACN.WebSite.Admin.GuildMsg.MonthlyEvenList" %>

<%@ Import Namespace="SBACN.WebSite.Common" %>
<%@ Register Src="../../UC/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
    function Del_Data(id){
        if (confirm("确认删除吗！")) {
            document.getElementById("<%= hid_ID.ClientID%>").value = id;
            document.getElementById("<%= btn_Delete.ClientID%>").click();
        }
    }

    function RefreshNewsList() {
    	if (document.getElementById("<%= btn_NewsRefresh.ClientID%>")) {
    		document.getElementById("<%= btn_NewsRefresh.ClientID%>").click();
    	}
    }
	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table-stroke2">
		<tr>
			<td width="80%" class="form-title2">
				事件
			</td>
			<td width="10%" class="form-title2">
				日期
			</td>
			<td width="10%" class="form-title2">
				操作
			</td>
		</tr>
		<asp:Repeater ID="MEList" runat="server">
			<ItemTemplate>
				<tr>
					<td class="form-body">
					<%# Eval("Description").ToString().CutTo(70,68)%>
					</td>
					<td class="form-body">
						<%# Convert.ToDateTime(Eval("EventDate")).ToString("yyyy-MM-dd")%>
					</td>
					<td class="form-body">
						<a href="MonthlyEvenEdit.aspx?meid=<%# Eval("ID")%>&st=<%= SystemType %>" target="_blank">
							编辑</a>&nbsp;&nbsp;<a href="javascript:void(0)" onclick="Del_Data(<%# Eval("ID")%>);">删除</a>
					</td>
				</tr>
			</ItemTemplate>
			<AlternatingItemTemplate>
				<tr>
					<td class="form-label">
					<%# Eval("Description").ToString().CutTo(70, 68)%>
					</td>
					<td class="form-label">
						<%# Convert.ToDateTime(Eval("EventDate")).ToString("yyyy-MM-dd")%>
					</td>
					<td class="form-label">
						<a href="MonthlyEvenEdit.aspx?meid=<%# Eval("ID")%>&st=<%= SystemType %>" target="_blank">
							编辑</a>&nbsp;&nbsp;<a href="javascript:void(0)" onclick="Del_Data(<%# Eval("ID")%>);">删除</a>
					</td>
				</tr>
			</AlternatingItemTemplate>
		</asp:Repeater>
		<tr>
			<td colspan="4" class="form-body">
				<a target="_blank" href="MonthlyEvenEdit.aspx?st=<%= SystemType %>">新增</a>&nbsp;&nbsp;
				<a target="_blank" href="MonthlyEventDown.aspx?st=<%= SystemType %>">下载</a>
			</td>
		</tr>
		<tr>
			<td colspan="4">
				<uc1:Pager ID="Pager1" runat="server" OnSelectedPageIndexChanged="BindSelectedPageIndexChanged"
					PageSize="15" />
			</td>
		</tr>

	</table>
    <div style="display: none;">
        <asp:HiddenField ID="hid_ID" Value="" runat="server" />
        <asp:Button Text="删除" ID="btn_Delete" runat="server" OnClick="btn_Delete_Click" />
		<asp:Button Text="刷新" ID="btn_NewsRefresh" runat="server" OnClick="btn_NewsRefresh_Click" />
    </div>
</asp:Content>
